from distutils.core import setup, Extension
 
ext = Extension(
    '_sysevents_osx', 
    extra_link_args = ["-framework", "ApplicationServices"],
    sources=['_sysevents_osx.c']
)
 
setup(
    name='foo', version='1.0', description='Test description', 
    ext_modules=[ext]
)
